﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Notepad.Search
{
    public partial class frmSearch : Form
    {

        ///委托变量声明
        public delegate void searchString(string SearchText, bool IsUp, bool IsCaseSensitive);

        ///事件声明
        public event searchString Search;
        
        public frmSearch()
        {
            InitializeComponent();
        }

        private void textSearch_Load(object sender, EventArgs e)
        {
            
        }
   
        private void 查找下一个_Click(object sender, EventArgs e)
        {
            if(textSearch.Text!="")
            Search(textSearch.Text,Up.Checked,Case.Checked);

        }

        ///取消

        private void 取消_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
